modify datastream