Code

take a copy of the node dict so that the subsequent set