error check latency input