put dist_check back into minhop