clear duplicated foldr history thanks to @audreyt ++