adding in the code to pull in the data from the library