oh, i need to mention, that some circuit sthat the mosfet wll be connected to, may not have a 12v optocoupler, but a 5v instead. If putting a 12v TVS diode, will it still work? And you said the 12volt TVS diode between the source and gate, correct? In simulation, I don't have TVS diodes to work with, but when placing a Zener Diode that way, I can't get the mosfet to switch the Optocoupler.