duration now goes down as trajectories are written