new trajectory flight step2 function