category functionality added