change the way minmaxdist behave