functions can be used in Invocation2