entity inheritance