remove incompatible code