started recode in pure c