minor minmax work