refactor of changeIncomeExpense