recode state