added repaintDemo