debugged switching