added changes to instream