added sub category functionality
added sub category functionality