more minimax clean up