adapted for badges