underdoing validnumber sametree