fixed tokenInput with each loop