simplifying the joint trajectory controller