updates data stream