complete the by-ref returns