added led_seg as output