Udpated Dir to use entity UP direction