corrected the redraw loop calls