modify code for lamp with 8 relays