trying to print all nodes with text