this should be set outside the parallel region because right now, N threads will set it simultaneously