added histogram checks for latency