add item category function to item model