added check for points within polygons, still missing something