replay revert coding