fixed epsilon calculation and default raster value assignment