headSize and tailSize use applyGTAttr