add size_adaptor. Problem with digest