prevent nodes from becoming their own parents/children