added a bit of code to read a file