update digestor code based on review