pattern matching: use standard OCaml conventions