adding revert features functionality