another attempted fix of the solenoid code, the last one was no good,