rasterization code