finished connected_components