+ added annotations to isConnected method