updated file to estimate all dists