add text to index