use entity object.