visibility checking in entity-model