add digest and double