better explain about get.rates funciton