update writer