modify parser to check node