removed names from distanc efunctions