made an instance of @switch