remove main in parser