adds digest to ensure quicker functionality