use parallel-stream for scanline