fixed kruskal and minimax