Rearranged rebalancing and uncolliding process in hgfhint