a more specific switch statement for number comparisons