minor performance enhancement to redraw