updating for current nubmer of leds