public Event remove() {
        if (this.isEmpty()) {
          System.out.println("Error: removing from empty queue");
          return null;
        }
        else if (seg.getEvents().length() == 0) {
          seg = seg.getNext();        
          return (Event) seg.getEvents().remove();
        }
        else return (Event) seg.getEvents().remove();
    }