adding time_analysis and indenting run_system