parent and child inheritence