changing code type