pipeline for xsq2cn