avoid having to pass up i var by simply taking the length of the token group returned