pipe main structure