removing obsolete repainting methodes