fixed changes for trajectory