added bt isBalanced