effective distance function