added search by iheritance.