add some functions to Category Model