working on redrawing