compact and connected sets