add logging of rate