restructure of badge type