bug fix to b discriminator again