switch case for Windows amended