added missing breaks in switch statement