added getIsBalanced