working
getting trajectories