more intelligent erase for less flicker