badge formatting