edit encode type