tried refined_analysis.py