start of fix for minimax