rebuild project and insert union_find