added purity back in