parallelizing the 2nd part of the theta step