modif swith debug