REFACTOR debt_generator