Correct formatting of switches