update Writer structure