added some poly code for raster study