refine flaws