switch fail! to panic!