added a default case to the switch statement