updated lex example