parsing category ids