updated dist_mf