add latency limit