synchronize rebalanceRates() method and correct indentation.