removed duplication between header and index file