nitpick: switch instead of if