go up till the entity instead of just one up