added extra lock