update badge.