replacing the raw func call with a call to the result method