handles list of Token input