change stream reading to one file data read