move createPoint back into fcn