compactness and connectedness