added discriminator per #52