I understand that you are a novice when it comes to accounting principles. When debt is repaid it is not revenue or income.