modify move function
Merge pull request #87 from irvs/issue65

modify move function