finalizing leds theory