recursive search of record's inheritance