purity method