process tokens