moving append to nodeList