category becomes entity_type