changing name of distance functions