header and index update