removing repaints