added update lock