spoilage and maximize