finished trajectory parser