updating lexer works