script to run the analysis