remove double indentation from switch statements