added breaks

added breaks to the switch statement