update to redraw method