initializing switch statement