as advised by @octo move to a rate computing function