before adding the warning display