introduce template function as ratelow