changed getBalance