updated move method