adding mutexes