commit  and revert