working on Lex