more initialization of connected components code