getting rid of tuple implementation in run_reformat, slight change to finding threshold