set relay 1 and relay 2