working with old streams
data writer