normalize i so that it represents number of tokens this value takes up in the token list