revert method