Purify this mess