sending one traj at a time with periodic part marked