This car was previously 535i m30, but now I installed the engine m20 2.0 with the 4hp22 automatic transmission. While it was m30 it had the ASC along with the ABS, but now when I installed the engine I tried to replace the ECU of the ABS but the connectors didn't match, then I replaced the connectors but then I got some extra wires because I replaced the connectors by matching the colors of the wires, but now I got some extra wires and my ABS doesn't work. Does the ABS affect the ECU of the transmission? My kickdown knob is still under the accelarator pedal. The ECU of the transmission receives power but it may not receives the input data of the engine which is vital for functioning. How can I revive the transmission and what I need to do make it work? Do i need the return the old ECU of the ABS even if it didn't work because this engine has no ASC?Do I need to connect some other thing which isn't in the M20 electric system?

Thank you in advance!