debugged fit_5_0.py