checking inherit