modify encording