return data is now unique and subcategories are listed rather than parent categories