use a switch statement rather than if(var == int)