added connected components fig