batching redraw