still trying to make rates work.
changed rateTable datastructure.