changed stream prototype