added find_max_min_v1