add rate control