updating documents