add entity_id