added DATA_MAX_ITEMS define