begin connected components module