trying with switch case