would help to save the buffer before committing.