set number of cores back to ones and add openMP directive instead