change digest type