updated code version for latency