moveTo method