min and pack