added code to expose the semanticParent