fixed errors in discrim