rebalance function