adapting for rates
pep8