add rate event handler