Also
this is for the bike that got hit by a car and has a taco-ed rear wheel, right?
Good odds that the Derailer Hanger is bent or damaged, not just the derailer itself.
You really should take it to a repair shop to have the Hanger alignment checked and fixed.
Installing a new derailer onto a bent hanger isn't going to fix the problem....