change critical section