parallelize the next generation calculation