added overloaded function moveTo