change syntax to be OCaml 3.11 compatible