write recode