method getCategories() added