update write mode