adding mutex