implemented redraw in static