finish categories and sub categories