checkTrajectory() added