working on generic function to load in studies