right way to do digest