update diary.