add invocation for function