return the function call to allow synchronous tasks