what is this function doing?  it look like it should be static...