document decode ring