improved led.h