store words in index file