DME code 2A87 and 3100

Got this code and researched that it was a VANOS solenoid issue. I replaced both of the solenoids and went for a drive and it was worse. Fuel economy is really bad and a loss of power. There was also a bad smell after the short drive. Need help I don’t know what to do.