tpairs added to support yield-func