got rid of repaints