finished isBalanced