getting category ids