allowed defaults to come at any point during switch instead of only after all case statements