invoke the function.