digitalWite problem

the Arduino is powered via usb 5 volt. The shield is powered by a separate 9 volt supply and the relays attached to the shield by a separate 12volt supply. If there is no problem with the code I will experiment with some leds tomorrow. Thanks