update to readFile