minmax editing