I think you're missing an `end` on your case statement