added exchange rate update function