remove .each for NodeList and instead converted NodeList to an Array to get all that good stuff