add content to index file