put in code for finding values in then nodes