Change code type