adding digest then dom