add _getParent method