move-node function updated