additional refactoring in loan.inquiry