working code from node2 (node1) is failing