Change item_type to category and fix syntax errors