changed getNodeParser function