add text to index file