solve auto-painting