added line traj generator