changed main in lex