update Document