pass the entity type