loop on tokens to match