removing unused variable defaultCredit