fix deprecated digest call