modify  code encoding