parallelized minimization