new fork, modified from Anca's code, calls all LEDs