stream.c implemented