update whole doc