update write command