fixed error in the parser and printed AST