getting 2d trajectory
cleaned