upate document