doCommit