amend before commit