B-0 added global critical section