adding number of leds as variable
added separate device