extension to distance_measure-type