THINK-99

could this be a case/switch statement instead of a series of if/else?