Enc, Dec, Res works for all i cases now