Extracting calcDists(), remove calcDists()