Update document.rs