add index to header