corrected horrendous mistake in rebalance()