straight line movement optimization