changed lexer with open