adding clearing lines and redrawing