changed scrap flow to be more effiencent on repeats