update the writing doc