return stream in the "pipe" function
fixed inserting closing brackets