toIndexValue.
better naming.
adding lookupTable.