divided the product form for root and sub categories