fixed led switch code