change to raster stats api