storing indexes to recover original words