working on purity verification