doing scanline