use stored result from distance comparisons for performance