fix digest formatting