switching incompatible code