tweaked verify_parent for more legible