added paren after raise and before unless
added then in case whens
added then in case then