adding solenoid driver code