fixed the direction measurement.
solved the conflict