 
   IF lower(overlap_type) NOT IN ('contains', 'within', 'intersects')
   THEN
-    RAISE EXCEPTION 'Overlap type ''%'' is not an accepted type (choose contains, within, intersects)', overlap_type;
+    RAISE EXCEPTION 'Overlap type ''%'' is not an accepted type (choose contains, within, or intersects)', overlap_type;
   ELSIF ST_GeometryType(geom) NOT IN ('ST_Polygon', 'ST_MultiPolygon')
   THEN
       RAISE EXCEPTION 'Invalid geometry type (%), expecting ''ST_MultiPolygon'' or ''ST_Polygon''', ST_GeometryType(geom);

  geom geometry(Geometry, 4326), -- point
  radius numeric, -- radius in meters
  boundary_id text,
  time_span text DEFAULT NULL)
RETURNS TABLE(boundary geometry, geom_refs text)
AS $$
DECLARE

               FROM cdb_observatory.OBS_GetPointsByBBox(
                        ST_Buffer(geom::geography, radius)::geometry,
                        boundary_id,
                        time_span,
                        overlap_type);
END;
$$ LANGUAGE plpgsql;

