working on the mutexes