debugging balance