write update