further refactorings for sendingMoney