modified run_analysis