minor changes in analysis.py