corrected typo in first draft of distance method