change badge to integer