added discriminant