updated example to new function name