adding trajectories