how to switch off led in Loop