finalizing min maximize stuff