revert a hook