changes in mutexes and arrays