removed multicore, added parfor