more coding for stream test