first modify and commit