create-where-fn -> make-where-function cos used outside