created different switch cases