adding stream.c for reference