still need to fix kruskal