fixed build error in main. changed case default: to default: