fixing issue #6 from missing parentNodeName function