On the fly editing of distance in result