get all distances