update getStDists