abstracting distance