graph not redrawing