distance works on click