changed to digest()