distance is a interval.