minmax complete