latency use new api