add const back to Trajectory