fixed arity of generated functions