added hash to ConnectedComponent