code for loading requisite data before analysis