removed duplicated code
match multiple tokens