adds the dist, min