remove some wordy lines of code and changed #move_to_root implementation
Merge pull request #176 from yuszuv/refactoring

remove some wordy lines of code and changed #move_to_root implementation