clarify addNode logic