setting up the main switch statements