[merge] replace if 5m closer

and use member variance_threshold instead of variance_mean