consolidated the node functions with the findLetter function.