reduce repaint area to improve effenciency