working on latency simulation