changeds to cashflow.py