keep principle 'min <= x < max'