LEDS light up
refactored code