improved diagrams in lex