update Move function