combined min_value and max_value into num_range in menu function