replaced mutex