added difference between heading and orientation function