add brackets to lex