corrected match/case expression