moved reusing existing stream to own sample class