code to debug accountBalance problem