update the write