first mean distances calculated