added partial invocation to curry