split stream part into stream.c and modify the folder