preliminary set up fixed - start looping over datasets