remove unneeded repaint method