only apply to sections if types match