replace getEntityType method with field