fixed revert procedure