implemented stream api for put