sample traj and print