debug checkForBankrupt method