How to replace 1999 Subaru Outback oxygen sensor?

Unplug sensor--- sometimes you can get a wrench on the sensor if not you will have to purchase the special socket.Genuine parts are often high so you can get the sensor at an auto store directions are included with the sensor as how to attach the pigtail and ude the heat shrink tubing suppied