updates documents