lock needs to be commited