added to reading in files