switching from mosfet to relay