Updating for writing text doc