adding max and min latency
adding max and min latency