badge and warning