fix sample data function invocation examples