mutual exclusion fix