min and max intervals.