fixed min-max search