modified method for reading trial files