added `case` (with a test)