record the value of the commit result before remvoe it