cleaned up setCtrlPt method from code