remove flaws