Updated repaint()

Updated repaint()