query now gets the info from the entity