finish switch statement