outer and inner treand