cleanup of lex