introduced led_toggle function