refactor the badge text