calling the returned function calls the function at last arg