fixed tsr traj creation