paint refactoring