add hard lower limit of 5 for detection