repaint added in one place