separated moveTo for s and g