getStDists tweak