run analysis code