added a very basic discriminator.