do file searching inside fret_bledth rather than in main script
do file searching inside fret_correct rather than in main script