kruskal not working