rate_enable logic changed