creating switch cases (non working version)