now capturing the parent node properly