implemented moveTo