replace setCategory with setCategories