removed thread pool, inserted parallel foreach