debugging balance functionality