update lock part