changing to hexdigest