editing resetNodes