adding text to index