added the ability to merge all nodes.