changed to getFirstNotNullFamily