parallelizing the chi step