modify encode type