isn't this just `nodelist[index] = new_node`?