fixed error msgs in parser