prepare to revert