waypoint working on logic