badge to array