udpate writer