fixed run_analysis