modify document.