need a distance measure in intersection calculation