added rebalancing stuff