implemented a whole bunch of extra analyses.