describe possible distance function