xsq purity pipeline