exchanged switch for cases

separate n cases instead of switch x
cases fixed