supply token type for findOpeningBracket works