switch statement is easier to read