forgot to add n to badge type check