fix docs to use result