some changes in cartesian planner