editing of header and index