still need parallel for trajectories