fixed mmm.py