discriminator doc and build