adding a mutex