added functions to support Within and Intersects