extract categories and regions