new function in category model