decode for dio