adding is_redraw variable