ugly isBalanced added