finish min stack