fix switch/case output