correcting latency