added return values for addCosts and addIncome