categories and subcategories are now passed to the thing