search through all the nodes