public void removeParent(Clerk[] clerks, int index) {
    for (int x = 0; x < clerks.length; x++) {
      if (clerks[x] != null && clerks[x].parent == index)
        clerks[x].setParent(-1);
      if (clerks[x] != null)
        clerks[x].removeChild(index);
    }
  }