perhaps refactor and combine moveNode and moveNodes