update digest a bit