improve file reading to reading whole txt