remove to max_min_value_of_type function from main