preliminarily integrated Dr. Hu's seg package