distance

making distance works