simplify parse and lex