scan better algorithm passes