update new entire document