run analysis function added