parallelized more loops