stuff in minimax