added more functions to stream