implement categories and product_categories