trying to fix scanline