polish document.