minor change, save space for minStack