can we move the node.save outside the loop?