updated compressor with streaming example