adding is.raster variable