make changes to index file