add missing function invocation in code sample