latency measuring added