modified clearwaypoints()