added category processing