improve scan and redraw algorithm for this complicated feature
improve scan and redraw algorithm for this complicated feature