updates with foldable type class