distance implementation, report dialog