change code type