made a node for each result then loop through nodes to print them out