finsih category and subcat