maybe a switch statement would make it easier to read? (now that we are on Java 7)