cut scan code