improve scanning efficiency