update invocation code