added latency buffer