added connected()