mutate a list of nodes into a single node