connectedness and compactness