I inherited my daughters 2010 limited after she died on the NYS thruway. It was determined the engine died and need to be replaced. My dad a mechanic for 50 plus years took on the task. I bought a used 57k Engine from a reputable provider. We have gotten it in and are constantly fighting a P0336 code we changed the sensor no success. We decided to change the wire harness with no success. Any help would be welcomed. The car runs fairly well when I erase the codes. When I shut it off the code returns.