change the timing of loading the data

change it to the beginning of the program