updated category model