update and commit