changed num cores to 6