update allCategories method