ScanLine + main