initial run analysis function version