added digest cmp