removed getNextWaypoint() method