Change the Nodes into immutable objects