added _toPipeFunction