update lock