modify moveToPoint