added more functions to the category class