update trim document.