added isConnected