make the distance a configurable parameter