distance debug