uncommenting the switch case for state if any