Revert sampling functions