turn nodeList into array