Adding header index with scoping question