end work with min_max algorithms