finlizing categories and sub-categories.