defined nodeArray, since it was causing an not defined error at runtime