changes in badge functionality