better values for mindist, maxdist, and sdist from Chris Torek