detect duplicated foldr history by foldr id only