added loading the data from a file