seperated out the get rates and convert functions