completed updateBalance function