finished the big switch case