run_analysis code update